package com.alibaba.dubbo.demo.service;

import com.alibaba.dubbo.demo.api.IBookService;
import com.alibaba.dubbo.demo.dao.BookMapper;
import com.alibaba.dubbo.demo.model.Book;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author:chenjinhang
 * @Description:
 * @Date: create in 15:26 2018/2/7
 **/
@Service("bookService")
public class BookService implements IBookService {

    @Autowired
    private BookMapper bookMapper;

    @Override
    public List<Book> getAllBooks() {
        return bookMapper.getAll();
    }
}
